package com.jic.manager.api.rest;

import com.jic.common.base.vo.RestResult;
import com.jic.manager.response.SysUserResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * description: SysUserApi
 * date: 2020/2/24 13:44
 * author: wangys
 * version: 1.0
 */
@FeignClient(name = "jic-manager",path = "/api/sysUser")
public interface SysUserApi {
    @PostMapping("getSysUserByToken")
    RestResult<SysUserResponse> getSysUserByToken(@RequestParam(value = "token") String token);

    @PostMapping("getSysUserById")
    RestResult<SysUserResponse> getSysUserById(@RequestBody Long id);

    @PostMapping("UserPhone")
    List<String> userPhone();
}
